const array1 = ["成竹"];
array1.push("张云");

console.log(array1);

// 报错
// array1.push(123);

const array2 = ["成竹", 123];
array2.push(234);
array2.push("成竹");

console.log(array2);

const array: (string | number) = ["chengzhu", 123];
array.push(234);
console.log(array);
